package com.jgp.glmeeting.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jgp.sys.common.model.UUIDModel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDate;

/**
 * 人员安排表
 * 安排 座次，车次，住宿，就餐的表格
 */
@Entity
@Table(name = "gl_arrangement")
public class Arrangement extends UUIDModel{

    /**
     * 人员表Id
     */
    @Column(name = "participantsId", length = 64)
    private String participantsId;

    /**
     * 参会人员手机号
     */
    @Column(name = "mobilePhone", length = 20)
    private String mobilePhone;

    /**
     * 计划日期
     */
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @Column(name = "planDate")
    private LocalDate planDate;

    /**
     * 会议座次
     */
    @Column(name = "siteNo", length = 20)
    private String siteNo;

    /**
     * 车次
     */
    @Column(name = "busNo", length = 50)
    private String busNo;

    /**
     * 酒店房间号
     */
    @Column(name = "roomNo", length = 50)
    private String roomNo;

    /**
     * 就餐安排
     */
    @Column(name = "diningArrange", length = 100)
    private String diningArrange;


    public String getParticipantsId() {
        return participantsId;
    }

    public void setParticipantsId(String participantsId) {
        this.participantsId = participantsId;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public LocalDate getPlanDate() {
        return planDate;
    }

    public void setPlanDate(LocalDate planDate) {
        this.planDate = planDate;
    }

    public String getSiteNo() {
        return siteNo;
    }

    public void setSiteNo(String siteNo) {
        this.siteNo = siteNo;
    }

    public String getBusNo() {
        return busNo;
    }

    public void setBusNo(String busNo) {
        this.busNo = busNo;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getDiningArrange() {
        return diningArrange;
    }

    public void setDiningArrange(String diningArrange) {
        this.diningArrange = diningArrange;
    }
}
